package com.antu.filegatewaytask.service;

import org.springframework.stereotype.Service;

/**
 * @ClassName DemoService
 * @Description TODO
 * @Author CYH
 * @Date 2023/12/12 15:05
 */

public class DemoService {

    Integer opNum = 0;

    public DemoService(Integer num) {
        opNum = num;
    }

    public DemoService() {
        opNum = 0;
    }


    public Integer compute() {
        return this.opNum * 2;
    }

    public Integer getOpNum() {
        return opNum;
    }
}
